package com.niit.mapper;

import com.niit.entity.Student;

import java.util.List;

public interface StudentMapper {
    List<Student> list();

    List<Student> searchByNumber(String value);

    List<Student> searchByName(String value);

    void save(Student student);

    void update(Student student);

    void delete(Integer id);

    List<Integer> findStudentIdByDormitoryId(Integer dormitoryId);

    void resetDormitoryId(Integer studentId, Integer dormitoryId);

    List<Student> findByDormitoryId(Integer dormitoryId);
}
